// import { createStore } from "redux"

// let numReducer = (state = { value: 10 }, action: any) => {
//     console.log(action)
//     switch (action.type) {
//         case "+":
//             return { value: state.value + action.payload }
//     }
//     return state
// }

// export default createStore(numReducer)

import { createStore } from "redux"

let nums = (state = { num: 123 }, action: any) => {
    switch (action.type) {
        case "+":
            return { num: state.num + action.payload }
    }
    return state
}
export default createStore(nums)